﻿<%@ Page Title="Login" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="content" ContentPlaceHolderID="MainContent" runat="server">

	<h2>Login via Windows Live ID</h2>

	<% if( ( TempData["ErrorMessage"] ?? ViewData["ErrorMessage"] ) != null ){ %>
	<p class="MvcMembershipError"><% =(string)TempData["ErrorMessage"] ?? (string)ViewData["ErrorMessage"]%></p>
	<% } %>

	<fieldset class="MvcMembership">
		<legend>Login</legend>
        <p>
            The text of the link below indicates whether you are signed in
            or not. If the link invites you to <b>Sign in</b>, you are not
            signed in yet. If it says <b>Sign out</b>, you are already signed
            in.
        </p>
		<div><%=Html.RenderComponent<StarterKits.Mvc.Membership.ComponentControllers.WindowsLiveComponentController>(c => c.SignIn())%></div>
		<div><%=Html.RenderComponent<StarterKits.Mvc.Membership.ComponentControllers.WindowsLiveComponentController>( c => c.LoginStatus() )%></div>
	</fieldset>
</asp:Content>
